/*
 * enotes.h
 *
 *  Created on: 7-dic-2008
 *      Author: furester <furester at gmail dot com>
 */

#ifndef ENOTES_H_
#define ENOTES_H_

#ifdef HAVE_CONFIG_H
   #include <config.h>
#endif

#ifndef PACKAGE
   #define PACKAGE "enotes"
   #define VERSION "0.1"
   #define PIXMAPS_DIR "../data"
#endif

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <linux/limits.h>

#define PRIORITY_NONE 0
#define PRIORITY_HIGHT 3
#define PRIORITY_MEDIUM 2
#define PRIORITY_LOW 1

typedef struct
{
	/*
	 *
	 *   <id />
	 *   <name /><!-- title -->
	 *   <duedate />
	 *   <completiondate />
	 *   <iscomplete />
	 *   <priority>none, high, medium, low</priority>
	 *   <hasNotes />
	 *   <supportsmultiplenotes />
	 *   <state /><!-- infos -->
	 *   <category />
	 *   <notes /><!-- text -->
	 *
	 */
   int id;
   char title[PATH_MAX];
   char duedate[PATH_MAX];
   char completiondate[PATH_MAX];
   int priority;
   char infos[PATH_MAX];
   char icon[PATH_MAX];
   char *categories[PATH_MAX];
   char text[PATH_MAX];

} t_todoitem;

struct todoitem
{
   t_todoitem inf;
   struct todoitem *pun;
};

struct charlist
{
	char *inf;
	struct charlist *pun;
};

const char* program_name;		// the name of the program

const char* pathname;			// path to store data
const char* dbname;				// name of the database
const char* catname;			// name of category

#endif /* ENOTES_H_ */
